package com.megalith.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Description
 * @Author lfp
 * @Date 2022/7/15
 * @Version 1.0
 */
@Data
@ApiModel("请假单DTO")
public class StaffLeaveTicketDTO {
    @ApiModelProperty(value = "员工姓名",required = true)
    @NotNull(message = "name 不能为空")
    private String name;

    @ApiModelProperty(value = "请假天数",required = true)
    @Min(value = 1, message = "days必须为正整数")
    private int days;

    @ApiModelProperty("请假原因")
    private String reason;
}
